package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Emp;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface EmpMapper extends BaseMapper<Emp> {

    @Update("update user set balance=balance-#{money} where id=#{id}")
    void deductMoney(Integer id, Integer money);
}
